<template>
	<view>

		<!-- banner -->
		<view v-if="temp_code == 'm_banner'" class="header-banner">
			<lrw-m-banner :value="temp_data.pic_1"></lrw-m-banner>
		</view>
		
		<!-- m_ad_s1 -->
		<view v-if="temp_code == 'm_ad_s1'" class="m_ad_s1">
			<lrw-m_ad_s1 :value="temp_data.pic_1"></lrw-m_ad_s1>
		</view>
		
		<!-- 商城公告 -->
		<view v-else-if="temp_code == 'm_article'" class="m_article">
			<lrw-m_article :value="temp_data.article_1"></lrw-m_article>
		</view>

		<!-- 标题模板 -->
		<view v-else-if="temp_code == 'm_goods_title_s1'" class="group-name">
			<lrw-m_goods_title_s1 :value="temp_data.title_1"></lrw-m_goods_title_s1>
		</view>

		<!-- 楼层模板 -->
		<view v-else-if="temp_code == 'm_goods_floor_s1'" class="product-box">
			<lrw-m_goods_floor_s1 :value="temp_data.goods_1"></lrw-m_goods_floor_s1>
		</view>

	</view>
</template>

<script>
	export default {
		name: "lrw_template",
		data() {
			return {

			}
		},
		props: {
			temp_code: {
				type: String
			},
			temp_data: {
				type: Object
			}
		},
		methods: {

		}
	}
</script>

<style scoped>
	.m_article {
	}
</style>
